package edu.suda.xsap.mapper;

import edu.suda.xsap.entity.Register;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RegisterMapper {
    void save(Register register);
    void update(Register register);
    Register findByName(String name);
    List<Register> findAll();

    List<Register> findByPhone(@Param("phone") String phone);

    Register findByNameandPassword(@Param("name") String name,@Param("password") String password);
}
